 echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" >> /etc/apt/sources.list
 echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list
 echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list
 echo "deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
curl https://pyenv.run | bash
#由于echo命令不好用，下面这些需要拷贝进.bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bashrc
#export PYENV_ROOT="$HOME/.pyenv"
#[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
#eval "$(pyenv init - bash)"
#eval "$(pyenv virtualenv-init -)"
#由于bash命令不好用，下面这些需要逐个执行
source ~/.bashrc
pyenv install 3.12
pyenv global 3.12
# 安装系统依赖和 git
 apt-get update && apt-get install -y git 
 rm -r /var/lib/apt/lists/*
 mkdir -p OpenManus
# 克隆 OpenManus 仓库（包含 requirements.txt 和 config/config.example.toml）
 git clone https://github.com/mannaandpoem/OpenManus.git ./OpenManus
 cd ./OpenManus
# 安装 Python 依赖，通过国内镜像源
 pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 创建 config 目录并复制示例配置文件（如果需要覆盖，可通过 volume 挂载）
 cd config && cp config.example.toml config.toml
 mkdir -p /home/user
 touch /home/user/file.txt
 chmod 644 /home/user/file.txt
 playwright install
 playwright install-deps
